//
//  LoginViewController.m
//  susencloud
//
//  Created by tanchao on 15/11/9.
//  Copyright © 2015年 chaoren. All rights reserved.
//

#import "LoginViewController.h"

@interface LoginViewController ()

@property (weak, nonatomic) IBOutlet UITextField *usernametxt;
@property (weak, nonatomic) IBOutlet UITextField *passwordtxt;

@end

@implementation LoginViewController
- (IBAction)login:(id)sender {
    self.usernametxt.text = @"ecloudtest20@163.com";
    self.passwordtxt.text = @"Aa111111";
    NSLog(@"账户:%@\r密码:%@",self.usernametxt.text,self.passwordtxt.text);
    NSString *email = self.usernametxt.text;
    NSString *passwd = [self.passwordtxt.text md5String];
    [[NetworkTools sharedTools]loginWithEmail:email andPassword:passwd];
    
//    [NOTIFICATION_CENTER postNotificationName:@"loginSusess" object:nil];
}


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
